-- background: 29744 from stack: in -- bmap block id: 61121 -- flags: 0000 -- background id: 0 -- name: Report Cards Classes ----- HyperTalk script ----- on openBackground global buttonNumber installMenuBar 1120,1121,1122,1123,1124,1125,-204,-205 checkMenuItem 1123,1,true end openBackground on closeBackground checkMenuItem 1123,1,false repeat with index = 19 to 30 set icon of background button id index to "Md Unchecked Box" end repeat end closeBackground on doMenu menuItem global buttonNumber lock screen if menuItem contains "About" then resetCard restoreMenuBar go to card "Report Cards" of background "About" unlock screen with zoom close else if menuItem is "Home" then resetCard restoreMenuBar go home else if menuItem contains "Quit" then resetCard restoreMenuBar false go to card "Mac School® Shell" unlock screen with zoom close else if menuItem is "Open" then push card get line buttonNumber of bg field "Class" go to card it & " Students" of this bg else if menuItem is "By Class" then else if menuItem is "By Student" then resetCard go to background "Report Cards" else if menuItem is "Sort Order…" then push card go to card menuItem of this background else if menuItem is "Term Information…" then push card get line buttonNumber of bg field "Class" go to card it & " Term" of this bg else if (menuItem is "CSL Attendance") OR (menuItem is "CSL Marks") OR (menuItem is "Report Manager") then resetCard go to background menuItem end if unlock screen end doMenu on groupOne global buttonNumber if not hilite of target then set hilite of background button buttonNumber to false set hilite of target to true put number of target into buttonNumber else lock screen push card get line buttonNumber of bg field "Class" go to card it & " Students" of this bg unlock screen end if end groupOne on groupTwo shiftKey if the shiftKey is down OR shiftKey is down then if icon of target is "5065" then repeat with index = 19 to 30 set icon of background button id index to "Md Unchecked Box" end repeat else repeat with index = 19 to 30 set icon of background button id index to "Md Checked Box" end repeat end if else if icon of target is "5065" then set icon of target to "Md Unchecked Box" else set icon of target to "Md Checked Box" end if end groupTwo on resetCard global buttonNumber if buttonNumber is not 1 then set hilite of background button buttonNumber to false set hilite of background button 1 to true put 1 into buttonNumber end if end resetCard on editText repeat with index = 7 to 18 set visible of background button id index to not visible of background button id index end repeat repeat with index = 1 to 6 set lockText of background field id index to not lockText of background field id index end repeat end editText on newCard moveTextFirst end newCard on moveTextFirst --exit moveTextFirst put bg field "Class Number" of first card of this bg into bg field "Class Number" of this card put bg field "Grade" of first card of this bg into bg field "Grade" of this card put bg field "Class" of first card of this bg into bg field "Class" of this card put bg field "Teacher" of first card of this bg into bg field "Teacher" of this card put bg field "Status" of first card of this bg into bg field "Status" of this card put bg field "Term" of first card of this bg into bg field "Term" of this card end moveTextFirst on moveTextLast --exit moveTextLast put bg field "Class Number" of this card into bg field "Class Number" of last card of this bg put bg field "Grade" of this card into bg field "Grade" of last card of this bg put bg field "Class" of this card into bg field "Class" of last card of this bg put bg field "Teacher" of this card into bg field "Teacher" of last card of this bg put bg field "Status" of this card into bg field "Status" of last card of this bg put bg field "Term" of this card into bg field "Term" of last card of this bg end moveTextLast -- part 1 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=9 top=44 right=59 bottom=90 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: Class Number -- part 2 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=399 top=44 right=59 bottom=504 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: Date -- part 3 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=8 top=97 right=314 bottom=52 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 65535 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 18 -- part name: Grade -- part 4 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=52 top=97 right=314 bottom=218 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 18 -- part name: Class -- part 5 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=218 top=97 right=314 bottom=400 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 18 -- part name: Teacher -- part 6 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=413 top=97 right=314 bottom=444 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 3 -- text size: 9 -- style flags: 0 -- line height: 18 -- part name: Status -- part 7 (button) -- low flags: 00 -- high flags: 4000 -- rect: left=8 top=98 right=115 bottom=468 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp groupOne end mouseUp -- part 8 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=8 top=116 right=133 bottom=468 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp groupOne end mouseUp -- part 9 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=8 top=134 right=151 bottom=468 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp groupOne end mouseUp -- part 10 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=8 top=152 right=169 bottom=468 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp groupOne end mouseUp -- part 11 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=8 top=170 right=187 bottom=468 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp groupOne end mouseUp -- part 12 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=8 top=188 right=205 bottom=468 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp groupOne end mouseUp -- part 13 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=8 top=206 right=223 bottom=468 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp groupOne end mouseUp -- part 14 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=8 top=224 right=241 bottom=468 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp groupOne end mouseUp -- part 15 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=8 top=242 right=259 bottom=468 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp groupOne end mouseUp -- part 16 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=8 top=260 right=277 bottom=468 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp groupOne end mouseUp -- part 17 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=8 top=278 right=295 bottom=468 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp groupOne end mouseUp -- part 18 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=8 top=296 right=313 bottom=468 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ----- HyperTalk script ----- on mouseUp groupOne end mouseUp -- part 19 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=472 top=99 right=113 bottom=486 -- title width / last selected line: 0 -- icon id / first selected line: 5064 / 5064 -- text alignment: 1 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: ----- HyperTalk script ----- on mouseUp shiftKey groupTwo shiftKey end mouseUp -- part 20 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=472 top=117 right=131 bottom=486 -- title width / last selected line: 0 -- icon id / first selected line: 5064 / 5064 -- text alignment: 1 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: ----- HyperTalk script ----- on mouseUp shiftKey groupTwo shiftKey end mouseUp -- part 21 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=472 top=135 right=149 bottom=486 -- title width / last selected line: 0 -- icon id / first selected line: 5064 / 5064 -- text alignment: 1 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: ----- HyperTalk script ----- on mouseUp shiftKey groupTwo shiftKey end mouseUp -- part 22 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=472 top=153 right=167 bottom=486 -- title width / last selected line: 0 -- icon id / first selected line: 5064 / 5064 -- text alignment: 1 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: ----- HyperTalk script ----- on mouseUp shiftKey groupTwo shiftKey end mouseUp -- part 23 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=472 top=171 right=185 bottom=486 -- title width / last selected line: 0 -- icon id / first selected line: 5064 / 5064 -- text alignment: 1 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: ----- HyperTalk script ----- on mouseUp shiftKey groupTwo shiftKey end mouseUp -- part 24 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=472 top=189 right=203 bottom=486 -- title width / last selected line: 0 -- icon id / first selected line: 5064 / 5064 -- text alignment: 1 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: ----- HyperTalk script ----- on mouseUp shiftKey groupTwo shiftKey end mouseUp -- part 25 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=472 top=207 right=221 bottom=486 -- title width / last selected line: 0 -- icon id / first selected line: 5064 / 5064 -- text alignment: 1 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: ----- HyperTalk script ----- on mouseUp shiftKey groupTwo shiftKey end mouseUp -- part 26 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=472 top=225 right=239 bottom=486 -- title width / last selected line: 0 -- icon id / first selected line: 5064 / 5064 -- text alignment: 1 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: ----- HyperTalk script ----- on mouseUp shiftKey groupTwo shiftKey end mouseUp -- part 27 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=472 top=243 right=257 bottom=486 -- title width / last selected line: 0 -- icon id / first selected line: 5064 / 5064 -- text alignment: 1 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: ----- HyperTalk script ----- on mouseUp shiftKey groupTwo shiftKey end mouseUp -- part 28 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=472 top=261 right=275 bottom=486 -- title width / last selected line: 0 -- icon id / first selected line: 5064 / 5064 -- text alignment: 1 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: ----- HyperTalk script ----- on mouseUp shiftKey groupTwo shiftKey end mouseUp -- part 29 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=472 top=279 right=293 bottom=486 -- title width / last selected line: 0 -- icon id / first selected line: 5064 / 5064 -- text alignment: 1 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: ----- HyperTalk script ----- on mouseUp shiftKey groupTwo shiftKey end mouseUp -- part 30 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=472 top=297 right=311 bottom=486 -- title width / last selected line: 0 -- icon id / first selected line: 5064 / 5064 -- text alignment: 1 -- font id: 3 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: ----- HyperTalk script ----- on mouseUp shiftKey groupTwo shiftKey end mouseUp -- part 31 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=35 top=315 right=328 bottom=52 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 3 -- text size: 9 -- style flags: 0 -- line height: 12 -- part name: Term